var http = require('http');
var url = require('url');
var util = require('util');

http.createServer(function(req, res){
    res.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'});
    // res.writeHead(200, {'Content-Type': 'application/json'});
    //res.end(util.inspect(url.parse(req.url, true)));

    var json = {"order":{
            name:"张丹",
            codearray:["1", "2"]
        }};
    var jsonreturn = util.inspect(json, true);
    res.end(jsonreturn);
}).listen(3000);